﻿package dk.gaming.rummikub.backend
{
	import flash.events.EventDispatcher;
	import flash.events.IEventDispatcher;
	import flash.net.URLStream;
	import flash.net.URLRequest;
	import flash.events.Event;
	import dk.gaming.rummikub.events.ProxyEvent;
	
	
	public class Proxy extends EventDispatcher implements IEventDispatcher
	{
		
		public function Proxy()
		{
			
		}
		
		public function RequestLogin(UserName:String, Password:String):void
		{
			 
		}
		
		protected function LoginResponse():void
		{
			dispatchEvent(new ProxyEvent(ProxyEvent.LOGIN_REQUEST_RESULT, false, false, "", 
		}
		
		public function RequestLogout(userID:String):void
		{
			
		}
		
		public function GetGameList():void
		{
			
		}
		
		protected function GameListResponse():void
		{
			
		}
		
		public function RequestKickPlayer(playerID:String):void
		{
			
		}
		
		public function BlockPlayer(playerID:String):void
		{
			
		}
		
		public function MutePlayer(playerID:String):void // prolly wont be done like this
		{
			
		}
		
		
		
		public function RequestJoinGame(userID:String, GameID:String):void
		{
			
		}
		
		protected function JoinGameResponse():void
		{
			
		}
		
		public function QuitGame(userID:String):void
		{
			
		}
		
		public function RequestNewTableCreation(userID:String):void
		{
			
		}
		
		protected function NewTableCreationResponse():void
		{
			
		}
		
		
		public function RequestNewTile(PlayerOrTable:Boolean):void
		{
			
		}
		
		protected function NewTileResponse():void
		{
			
		}
		
		public function ReleaseTile():void
		{
			
		}
		
		public function RequestEndSet():void
		{
			
		}
		
		protected function EndSetResponse():void
		{
			
		}
		
		protected function GameEndsByWin():void
		{
			
		}
		
		protected function GameEndsUnexpected():void
		{
			
		}
		
		protected function GameStarts():void
		{
			
		}
		
		protected function TileReleased():void
		{
			
		}
		
		protected function TableTileHarvested():void
		{
			
		}
		
		protected function TurnBegan():void
		{
			
		}
		
		protected function TurnEnded():void
		{
			
		}
		
		protected function JokerSet():void
		{
			
		}
		
		protected function Starter():void
		{
			
		}
		
		
		
		
	}
	
	
	
}